package String类编程题;

import java.util.Scanner;

public class Question5 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("Enter a java file's name:");
        String filename = in.nextLine();
        System.out.println(filename.charAt(0));
        System.out.println(filename.substring(filename.lastIndexOf(".")));
        String sub1 = filename.substring(0,1).toUpperCase();
        String sub2 = filename.substring(1).toLowerCase();
        System.out.println(sub1+sub2);
    }
}
